package com.sbwebsocket.core.service.impl;

import com.sbwebsocket.core.model.bo.WsMessage;
import com.sbwebsocket.core.model.contants.WsMessageType;
import com.sbwebsocket.core.service.MessagePushService;
import com.sbwebsocket.core.service.MessageTypePushProcess;
import com.sbwebsocket.core.util.SpringUtil;

/**
 * @Auther: GSJ
 * @Date: 2022/2/10
 * @Description:
 * @version: 1.0
 */
public class MessagePushServiceImpl implements MessagePushService {

    @Override
    public boolean push(WsMessage message) {
        //根据消息类型对应不同业务处理
        WsMessageType type = message.getType();

        SpringUtil.getBean(type.getType() + MessageTypePushProcess.class.getSimpleName());


        return false;
    }
}
